package com.zmm.member.service;

import com.zmm.member.model.AuthToken;
import com.zmm.member.model.Customer;

/**
 * @author 900045
 * @description:
 * @name CustomerService
 * @date By 2021-07-26 11:22:32
 */
public interface CustomerService {
	
	/**
	 * 新增 用户信息 -- 接口
	 * @author: 900045
	 * @date: 2021-07-26 11:24:19
	 * @throws 
	 * @param customer: 
	 * @return: boolean
	 **/
	boolean addCustomer(Customer customer);

	/**
	 * 根据手机号查询 用户 --- 接口
	 * @author: 900045
	 * @date: 2021-07-26 15:10:50
	 * @throws 
	 * @param phone: 
	 * @return: com.zmm.member.model.Customer
	 **/
	Customer findOneCustomerByPhone(String phone);


	/**
	 * 根据手机号判断是否注册过 -- 接口
	 * @author: 900045
	 * @date: 2021-08-05 18:40:30
	 * @throws 
	 * @param phoneNum: 
	 * @return: boolean
	 **/
	boolean validatePhoneCertificate(String phoneNum);
	
	
	/**
	 * 添加用户认证token -- 接口
	 * @author: 900045
	 * @date: 2021-08-06 16:40:03
	 * @throws 
	 * @param authToken: 
	 * @return: boolean
	 **/
	boolean addAuthToken(AuthToken authToken);

	/**
	 * 修改登录的ip -- 接口
	 * @author: 900045
	 * @date: 2021-08-06 17:29:07
	 * @throws 
	 * @param ip: 
	 * @param customerId: 
	 * @return: void
	 **/
	void modifyLoginIpByCustomerId(String ip, Integer customerId);
}
